import java.util.Scanner;

public class String_07 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入一个字符串");
        String line = scanner.nextLine();
        String reverse = reverse(line);
        System.out.println(reverse);
    }


    public static String reverse(String s){
        String ss="";
        for (int i=s.length()-1;i>=0;i--){
            ss=ss+s.charAt(i);
        }
        return ss;
    }
}
